import{E as e,q as t,ut as n,x as r}from"./B603vO-13smUKN.js";import{s as i}from"./DcIns0se4bdVKJ.js";import{g as a,it as o}from"./CIxmKYxc4tZcJF.js";import{a as s,o as c}from"./BbxvatETxeTHf.js";var l=n(`bus`),u=new r;function d(e,t){l(`useOnBus`,e),o(u.on(e,t))}function f(){let t={_id:e(),_type:`note`,title:s(`unnamed`),date:i()};return c.workspace?.createItem(t)}var p=n(`shortcuts`);a(()=>globalThis.isTestEnv?`de`:c.workspace?.settings?.sCountry??`de`);var m=a(()=>globalThis.isTestEnv?`EUR`:c.workspace?.settings?.sCurrency??`EUR`),h=a(()=>{try{return globalThis.isTestEnv?[5,7,16,19]:t(Object.values(c.workspace?.settings?.sTaxRates??{}).map(e=>e.rate))}catch(e){p.warn(`workspaceTaxRates err`,e,c.workspace?.settings?.sTaxRates)}return[]});export{d as a,u as i,h as n,f as r,m as t};